<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
    <meta charset="utf-8">
    <title>重置密码</title>
    <link rel="stylesheet" href="/assets/css/base.css">
    <link rel="stylesheet" href="/assets/css/goto.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <div class="goto_bg">
        <div class="warning_content">
            <div class="goto_success">
                <h1>
                    重置密码成功，请及时查收邮件，<span id="time" style="color: red">5</span>秒后将自动关闭页面。
                </h1>
            </div>
        </div>
    </div>
</body>
<script language="JavaScript" type="text/javascript">
    function delayClose() {
        var delay = document.getElementById("time").innerHTML;
        if(delay > 0) {
            delay--;
            document.getElementById("time").innerHTML = delay;
        } else {
            window.opener=null;
            window.open('','_self');
            window.close();
            //window.top.location.href = url;
        }
        setTimeout(function(){
            delayClose();
        }, 1000);
    }
</script>
<script type="text/javascript">
    delayClose();
</script>
</html>
